home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / etc / acpi / resume.d / 58-proc-sysfs-restore-state.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  2007-03-29  |  361 b   |  13 lines

  1. #!/bin/sh
  2. # Paul Sladen 2007-03-22
  3. # Restore saved /sys and /proc states following resume.
  4. # See suspend.d/??-proc-sysfs-restore-state.sh for details.
  5.  
  6. if [ -r /var/run/proc-sysfs-save-state ] ; then
  7.     while read WHERE foo WHAT ; do
  8.     if [ "x$foo" = "x=" -a -w "$WHERE" ] ; then
  9.         echo -n "$WHAT" > "$WHERE"
  10.     fi
  11.     done < /var/run/proc-sysfs-save-state
  12. fi
  13.